package com.dmwork.service.customer.feign;

import com.dmwork.service.customer.feign.impl.WorkFeignServiceFallback;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Service
@FeignClient(name = "service-work-center", fallback = WorkFeignServiceFallback.class)
public interface WorkFeignService {

    @ApiOperation("获取指定用户的作品数")
    @GetMapping("/front/dm_work/work/feign/get_work_count/{customerId}")
    Integer getWorkCountByCustomerId(@PathVariable("customerId") String customerId);
}
